from django.db import models


from home.views import Banner
from utils.BaseModel import BaseModel


# Create your models here.
# 用户表 注册
class UserModel(BaseModel):
    username = models.CharField(max_length=32,verbose_name="用户名",default='')
    password = models.CharField(max_length=32,verbose_name="密码")
    email = models.EmailField(verbose_name="邮箱",default='')
    phone = models.CharField(max_length=11,verbose_name="手机号",default='')
    level = models.IntegerField(verbose_name="用户等级",default=0)
    score = models.IntegerField(default=0,verbose_name="用户积分")
    class Meta:
        verbose_name="用户表"
        db_table="fguser"
    def __str__(self):
        return self.username
